package myProject.gwt.client;

import com.google.gwt.user.client.ui.Button;


public class KeyboardDisplayController {
	
	private AbstractKeyboard keyboard;
	private AbstractDisplay display;
	
	public KeyboardDisplayController(AbstractKeyboard keyboard, final AbstractDisplay display){
		this.keyboard = keyboard;
		this.display = display;
		
		keyboard.setKeyboardListener(new IKeyboardListener(){

			@Override
			public void keyPressed(char key) {
				display.setText(display.getText()+ key);
			}
			
		});
	}
}
